/* EMPIRE - style.css */

/* Import Raleway font */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600&display=swap');

body {
    font-family: 'Raleway', sans-serif;
    background-image: url('background.png'); /* Background image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Transparent Header with Gradient Background */
nav {
    background: linear-gradient(135deg, rgb(0 0 0 / 0%), rgba(0, 0, 0, 0.6));
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Blur effect */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-logo {
    width: 150px; /* Increased logo size */
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.admin-button, .logout-button {
    background: none;
    color: #1E90FF; /* DodgerBlue text */
    padding: 10px 20px;
    border: 2px solid #1E90FF; /* Blue border */
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.admin-button:hover, .logout-button:hover {
    background-color: #1E90FF;
    color: white;
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.5);
}

/* Container with Solid Blue Border and Animated Gradient */
.container {
    flex: 1;
    max-width: 900px; /* Increased container width */
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    padding: 40px 50px;
    border-radius: 35px;
    border: 4px solid #1E90FF; /* Solid blue border */
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    animation: borderAnimation 20s linear infinite;
}

@keyframes borderAnimation {
    0% {
        border-color: #1E90FF;
    }
    25% {
        border-color: #00BFFF;
    }
    50% {
        border-color: #87CEFA;
    }
    75% {
        border-color: #1E90FF;
    }
    100% {
        border-color: #1E90FF;
    }
}

h1, h2, h3 {
    color: #1E90FF; /* DodgerBlue color for headings */
}

form {
    margin-top: 20px;
    text-align: left;
}

label {
    font-weight: 600;
    display: block;
    margin-top: 20px;
    color: #333333;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 2px solid #1E90FF; /* Blue border */
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #FF6347; /* Tomato color on focus */
    box-shadow: 0 0 10px rgba(255, 99, 71, 0.5); /* Tomato shadow */
    outline: none;
}

button {
    background: none;
    color: #1E90FF; /* DodgerBlue text */
    padding: 15px 30px;
    margin-top: 30px;
    border: 2px solid #1E90FF; /* Blue border */
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #1E90FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.5);
}

.error {
    color: #FF6347; /* Tomato color */
    margin-top: 20px;
    text-align: left;
}

.success {
    color: #32CD32; /* LimeGreen color */
    margin-top: 20px;
    text-align: left;
}

.result {
    margin-top: 40px;
    text-align: left;
}

.result p {
    font-size: 20px;
    margin: 8px 0;
}

.additional-info {
    margin-top: 30px;
}

.info-button {
    background-color: #1E90FF; /* DodgerBlue */
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    margin-left: 15px;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.info-button:hover {
    background-color: #00BFFF; /* DeepSkyBlue */
    transform: scale(1.1);
}

.info-content {
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.9); /* More opaque */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.local-results ul {
    list-style-type: none;
    padding: 0;
}

.local-results li {
    background-color: rgba(255, 255, 255, 0.9); /* More opaque */
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.details-button {
    background: none;
    color: #1E90FF; /* DodgerBlue text */
    padding: 8px 16px;
    margin-top: 15px;
    border: 2px solid #1E90FF; /* Blue border */
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
}

.details-button:hover {
    background-color: #1E90FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.5);
}

.details-content {
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.95); /* More opaque */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

table, th, td {
    border: 1px solid #1E90FF; /* Blue border */
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: rgba(30, 144, 255, 0.1); /* Light blue background */
}

footer {
    background: linear-gradient(135deg, rgb(0 0 0 / 0%), rgba(0, 0, 0, 0.6));
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    backdrop-filter: blur(10px);
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        margin: 30px 20px;
        padding: 30px 20px;
    }

    .nav-logo {
        width: 120px;
    }

    button, .details-button, .admin-button, .logout-button {
        width: 100%;		
        text-align: center;
        padding: 12px 0;
    }

    .info-button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    table, th, td {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    /* Further adjustments for very small screens */
    .container {
        padding: 20px 15px;
    }

    h1, h2, h3 {
        font-size: 1.5rem;
    }

    .result p {
        font-size: 1rem;
    }
}
.history-section {
    padding: 15px;
    overflow-x: scroll;
}

.history-section table {
    width: 100%;
    border-collapse: collapse;
}

.history-section table th,
.history-section table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
